.class Lcom/estrongs/android/util/l0$b;
.super Ljava/lang/Object;
.source "Settings.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/android/util/l0;->a(Landroid/content/Context;Ljava/lang/String;)I
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Ljava/lang/String;

.field final synthetic b:Ljava/io/File;

.field final synthetic c:Landroid/content/Context;

.field final synthetic d:Lcom/estrongs/android/util/l0;


# direct methods
.method constructor <init>(Lcom/estrongs/android/util/l0;Ljava/lang/String;Ljava/io/File;Landroid/content/Context;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/util/l0$b;->d:Lcom/estrongs/android/util/l0;

    iput-object p2, p0, Lcom/estrongs/android/util/l0$b;->a:Ljava/lang/String;

    iput-object p3, p0, Lcom/estrongs/android/util/l0$b;->b:Ljava/io/File;

    iput-object p4, p0, Lcom/estrongs/android/util/l0$b;->c:Landroid/content/Context;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 7

    .line 1
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    .line 2
    new-instance p1, Ljava/io/File;

    new-instance p2, Ljava/lang/StringBuilder;

    invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v0, p0, Lcom/estrongs/android/util/l0$b;->a:Ljava/lang/String;

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v0, ".bk"

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    invoke-direct {p1, p2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    const p2, 0x7f110870

    const/4 v0, 0x1

    const/4 v1, 0x0

    .line 3
    :try_start_0
    iget-object v2, p0, Lcom/estrongs/android/util/l0$b;->b:Ljava/io/File;

    invoke-virtual {v2, p1}, Ljava/io/File;->renameTo(Ljava/io/File;)Z

    .line 4
    new-instance v2, Ljava/util/HashMap;

    const/4 v3, 0x2

    invoke-direct {v2, v3}, Ljava/util/HashMap;-><init>(I)V

    const-string v3, "compress_level"

    .line 5
    invoke-static {v0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 6
    new-instance v3, Les/n80;

    const/4 v4, 0x0

    invoke-direct {v3, v4}, Les/n80;-><init>(Les/a80;)V

    .line 7
    invoke-virtual {v3, v0}, Les/n80;->a(Z)V

    .line 8
    new-instance v4, Les/f80;

    iget-object v5, p0, Lcom/estrongs/android/util/l0$b;->a:Ljava/lang/String;

    invoke-direct {v4, v5, v3, v2}, Les/f80;-><init>(Ljava/lang/String;Les/l80;Ljava/util/Map;)V

    .line 9
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    .line 10
    invoke-static {}, Lcom/estrongs/android/util/l0;->a()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 11
    invoke-virtual {v4, v2}, Les/f80;->a(Ljava/util/List;)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_6
    .catch Lcom/estrongs/fs/FileSystemException; {:try_start_0 .. :try_end_0} :catch_5
    .catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_4
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    .line 12
    :try_start_1
    iget-object v2, p0, Lcom/estrongs/android/util/l0$b;->d:Lcom/estrongs/android/util/l0;

    invoke-static {v2}, Lcom/estrongs/android/util/l0;->a(Lcom/estrongs/android/util/l0;)V

    .line 13
    new-instance v2, Ljava/io/File;

    invoke-static {}, Lcom/estrongs/android/util/l0;->a()Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 14
    invoke-virtual {v2}, Ljava/io/File;->delete()Z
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    .line 15
    :catch_0
    :try_start_2
    iget-object v1, p0, Lcom/estrongs/android/util/l0$b;->a:Ljava/lang/String;

    .line 16
    invoke-static {v1}, Lcom/estrongs/android/util/o0;->b(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_1

    const-string v2, "/"

    .line 17
    invoke-virtual {v1, v2}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 18
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "*"

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    goto :goto_0

    .line 19
    :cond_0
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "/*"

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .line 20
    :goto_0
    invoke-static {}, Les/p10;->e()Les/p10;

    move-result-object v2

    invoke-virtual {v2, v1}, Les/p10;->a(Ljava/lang/String;)V

    .line 21
    :cond_1
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v1

    iget-object v2, p0, Lcom/estrongs/android/util/l0$b;->a:Ljava/lang/String;

    invoke-virtual {v1, v2}, Lcom/estrongs/android/pop/l;->W(Ljava/lang/String;)V

    .line 22
    iget-object v1, p0, Lcom/estrongs/android/util/l0$b;->c:Landroid/content/Context;

    const v2, 0x7f110873

    invoke-static {v1, v2, v0}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;II)V

    .line 23
    invoke-virtual {p1}, Ljava/io/File;->delete()Z
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_3
    .catch Lcom/estrongs/fs/FileSystemException; {:try_start_2 .. :try_end_2} :catch_2
    .catch Ljava/lang/NullPointerException; {:try_start_2 .. :try_end_2} :catch_1
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    return-void

    :catchall_0
    move-exception v2

    const/4 v1, 0x1

    goto :goto_4

    :catch_1
    const/4 v1, 0x1

    goto :goto_1

    :catch_2
    move-exception v1

    const/4 v2, 0x1

    goto :goto_2

    :catch_3
    move-exception v1

    const/4 v2, 0x1

    goto :goto_3

    :catchall_1
    move-exception v2

    goto :goto_4

    :catch_4
    nop

    :goto_1
    if-nez v1, :cond_2

    .line 24
    iget-object v1, p0, Lcom/estrongs/android/util/l0$b;->b:Ljava/io/File;

    invoke-virtual {p1, v1}, Ljava/io/File;->renameTo(Ljava/io/File;)Z

    .line 25
    iget-object p1, p0, Lcom/estrongs/android/util/l0$b;->c:Landroid/content/Context;

    invoke-static {p1, p2, v0}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;II)V

    :cond_2
    return-void

    :catch_5
    move-exception v2

    move-object v1, v2

    const/4 v2, 0x0

    .line 26
    :goto_2
    :try_start_3
    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_2

    if-nez v2, :cond_3

    .line 27
    iget-object v1, p0, Lcom/estrongs/android/util/l0$b;->b:Ljava/io/File;

    invoke-virtual {p1, v1}, Ljava/io/File;->renameTo(Ljava/io/File;)Z

    .line 28
    iget-object p1, p0, Lcom/estrongs/android/util/l0$b;->c:Landroid/content/Context;

    invoke-static {p1, p2, v0}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;II)V

    :cond_3
    return-void

    :catch_6
    move-exception v2

    move-object v1, v2

    const/4 v2, 0x0

    .line 29
    :goto_3
    :try_start_4
    invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_2

    if-nez v2, :cond_4

    .line 30
    iget-object v1, p0, Lcom/estrongs/android/util/l0$b;->b:Ljava/io/File;

    invoke-virtual {p1, v1}, Ljava/io/File;->renameTo(Ljava/io/File;)Z

    .line 31
    iget-object p1, p0, Lcom/estrongs/android/util/l0$b;->c:Landroid/content/Context;

    invoke-static {p1, p2, v0}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;II)V

    :cond_4
    return-void

    :catchall_2
    move-exception v1

    move v6, v2

    move-object v2, v1

    move v1, v6

    :goto_4
    if-nez v1, :cond_5

    .line 32
    iget-object v1, p0, Lcom/estrongs/android/util/l0$b;->b:Ljava/io/File;

    invoke-virtual {p1, v1}, Ljava/io/File;->renameTo(Ljava/io/File;)Z

    .line 33
    iget-object p1, p0, Lcom/estrongs/android/util/l0$b;->c:Landroid/content/Context;

    invoke-static {p1, p2, v0}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;II)V

    .line 34
    :cond_5
    throw v2
.end method
